﻿using System;
using System.Windows.Forms;

namespace ChatGUI
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            Chat chat = new Chat("");

            Application.Run(new LoginForm(chat, "ChatGUI.config.xml"));

            if (chat.SignedIn)
                Application.Run(new MainForm(chat));
        }
    }
}
